package org.zoomdev.zoom.dao.rename;

public class PrefixRenameStrategy extends CamelRenameStrategy {


    private final String prefix;

    public PrefixRenameStrategy(String prefix) {
        this.prefix = prefix;
    }


    @Override
    public String getFieldName(String column) {
        if (column.startsWith(prefix)) {
            column = column.substring(prefix.length());
        }
        return super.getFieldName(column);
    }
}
